package service.impl;

import bean.pojo.GdComment;
import dao.GdCommentMapper;
import org.springframework.stereotype.Service;
import service.GdCommentService;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GdCommentServiceImpl implements GdCommentService {

    @Resource
    private GdCommentMapper gdCommentMapper;

    public boolean insert(GdComment pojo) throws Exception{
        return gdCommentMapper.insert(pojo)>0;
    }

    public int insertList(List< GdComment> pojos){
        return gdCommentMapper.insertList(pojos);
    }

    public List<GdComment> select(GdComment pojo){
        return gdCommentMapper.select(pojo);
    }

    public int update(GdComment pojo){
        return gdCommentMapper.update(pojo);
    }

}
